import { createApp } from 'vue'
import App from './App.vue'
// 样式重置：html标签在不同的浏览器有相同的表现
import 'normalize.css'
// 公共样式
import '@/assets/styles/common.less'
// 路由
import router from '@/router/index'
import{ createPinia } from 'pinia'
// 全局组件
import XtxUi from '@/components/index'
// 全局自定义指令
import XtxDirectives from '@/components/directives/index'
// 持久化
import piniaPersist from 'pinia-plugin-persist'

const pinia = createPinia()

const app = createApp(App)
app.use(XtxUi)
app.use(XtxDirectives)
pinia.use(piniaPersist)
app.use(router).use(pinia).mount('#app')
